[O2B-1558] Set filters from url upon page reload#2144
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2144 +/- ##
==========================================
- Coverage 45.88% 45.73% -0.16%
==========================================
Files 1035 1035
Lines 17165 17225 +60
Branches 3123 3133 +10
==========================================
Hits 7877 7877
- Misses 9288 9348 +60 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
82c8d41 to
e157e08
Compare
beca3c1 to
319bb4d
Compare
767f763 to
6add680
Compare
6add680 to
d23795c
Compare
There was a problem hiding this comment.
Comment for general description of the PR, it does more than what you mention:
- changes the use of textInput component
- changes EOR
- adds the logger
Comments for the logger - as you are introducing lots of duplicated code, I belive this would be better to be added as a middleware method and separate ticket
Comment for the call to set from URL. Could this not be added in a common space, perhaps something like in the setter of pageIdentifier?
There was a problem hiding this comment.
I believe I identified a bug that needs to be taken care of:
- open a summary page (let's say logs)
- set a filter (let's say "No Anonymous")
- pages succesfully gets updated and the URL as well
- use the browser "Go Back" navigation button
- URL gets updated but the request towards the backend will still contain the filter applied
When fixing the test, please add a test for this scenario as well
…by go back funcitonality
I have a JIRA ticket
Notable changes for users:
Notable changes for developers:
The eorReason filter component has been changed to match its reasonType and Category with its model
A textInputFilter has been replaced by a textFilter as the model that controls it is a TextTokenFilterModel.
A guard has been added in the registerObservablesQcSummaryDependsOn function to prevent continual re-registration
A new getter has been added to filterModel and selectionModel called isInactive that will by default act as an alias for the isEmpty getter
ToggleFilters will now ALWAYS be filled, meaning that they will always be added to the query parameters.
Changes made to the database: